#include <stdio.h>
int main(void)
{
    int Xiaoming_age = 21;
    int Xiaoli_age = 21;
    int Xiaoshuai_age = 40;
    int Logic_result1, Logic_result2;
    Logic_result1 = (Xiaoming_age >= 22) && (Xiaoli_age >= 20);
    Logic_result2 = (Xiaoshuai_age >= 22) && (Xiaoli_age >= 20);
    printf("Xiaoming and Xiaoli merry result is %d\n", Logic_result1);
    printf("Xiaoshuai and Xiaoli merry result is %d\n", Logic_result2);
    ((Xiaoming_age >= 22) && (Xiaoli_age >= 20)) ? printf("They can\n") : printf("They can't\n");
    ((Xiaoshuai_age >= 22) && (Xiaoli_age >= 20)) ? printf("They can\n") : printf("They can't\n");
    return 0;
}